const http = require('http');
const route = require('./route');

http.createServer((req,res)=>{
    let myUrl = new URL(req.url,"http://127.0.0.1")
    route(myUrl.pathname,res);
    res.end();
}).listen(8888,()=>console.log('server start'))